/**
 * 1. Reset something everytime is a suck
 * 2. Inherit from default setting
 */

 * {
	margin: 0; /* 1 */
	padding: 0; /* 1 */
	background-repeat: no-repeat; /* 1 */
	box-sizing: inherit; /* 2 */
	border: 0;
}

/**
 * 1. Prevent certain mobile browsers from automatically zooming fonts.
 * 2. Border box sizing
 * 3. Smooth scroll
 */

html {
	-ms-text-size-adjust: 100%; /* 1 */
	-webkit-text-size-adjust: 100%; /* 1 */
	box-sizing: border-box; /* 2 */
	scroll-behavior: smooth; /* 3 */
}

/**
 * 1. Set default font styles
 * 2. Beautiful fonts again
 * 3. Prevent vertical scroll
 */

body {
	font: 16px/1.6 sans-serif; /* 1 */
	-moz-osx-font-smoothing: grayscale; /* 2 */
	-webkit-font-smoothing: antialiased; /* 2 */
	overflow-x: hidden; /* 3 */
}

/**
 * All Headings looks the same
 */

h1,
h2,
h3,
h4,
h5 {
	font-size: 1em;
	font-weight: normal;
}

/**
 * 1. Reset link styles
 * 2. Links are more dynamic now
 * 3. Remove the gray background on active links in IE 10.
 */

a {
	text-decoration: none; /* 1 */
	color: inherit; /* 1 */
	display: inline-block; /* 2 */
	background-color: transparent; /* 3 */
}

/**
 * No bullets anymore
 */

ol,
ul {
	list-style: none;
}

/**
 * Remove all default styles and all elements looks the same
 */

button,
input,
optgroup,
select,
textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	overflow: visible;
	border: 0;
	outline: 0;
	font: inherit;
	-webkit-font-smoothing: inherit;
	letter-spacing: inherit;
	background: none;
	vertical-align: top;
}

/**
 * Prevent chrome autofill style
 */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-transition: 'color 9999s ease-out, background-color 9999s ease-out';
	-webkit-transition-delay: 9999s;
}

/**
 * You should define size for textarea
 */

textarea {
	resize: none;
}

/**
 * Pointer cursor for buttons
 */

input[type='button'],
button {
	cursor: pointer;
}

/**
 * Pointer cursor for buttons
 */

button[disabled],
html input[disabled] {
	cursor: default;
}

/**
 * 1. Remove space after each image
 * 2. Ensure responsive images
 * 3. Remove the border on images inside links in IE 10.
 */

img {
	display: block; /* 1 */
	max-width: 100%; /* 2 */
	height: auto; /* 2 */
	border-style: none; /* 3 */
}

/**
 * If a SVG doesn't have fill, it'll give one
 */

svg {
	fill: currentColor;
}

/**
 * Collapse border spacing
 */

table {
	border-spacing: 0;
}

::-moz-selection {
	color: $grey-smoke;
	background: $brand;
}

::selection {
	color: $grey-smoke;
	background: $brand;
}
